package com.atguigu.realtime.util;

import akka.stream.impl.SourceModuleIslandTag;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.atguigu.realtime.common.Constant;
import com.google.common.base.CaseFormat;
import org.apache.commons.beanutils.BeanUtils;

import java.sql.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/4/21 9:13
 */
public class test {

    public static void main(String[] args) {

        String s = "{\n" +
                "    \"display_type\":\"activity\",\n" +
                "    \"page_id\":\"home\",\n" +
                "    \"item\":\"2\",\n" +
                "    \"item_type\":\"activity_id\",\n" +
                "    \"pos_id\":3,\n" +
                "    \"mid\":\"mid_1\",\n" +
                "    \"order\":1,\n" +
                "    \"ts\":\"1618556681000\"\n" +
                "}";

        JSONObject json = JSON.parseObject(s);

        Long ts = json.getLong("ts");

        System.out.println(ts);


    }
}




